<style>
    a.price-btn {
        display: block;
        background-color: #333333;
        color: #fff;
        padding: 4px;
        text-align: center;
        text-transform: uppercase;
        font-size: 14px;
        margin-top: 8px;
    }
</style>
<div class="row">
    <div class="span12">
        <h3 class="widget-title uppercase border-bottom"><?php echo $type ?></h3>
        <?php if (isset($list) && sizeof($list) != 0) { ?>
            <?php $i = 0; ?>
            <?php foreach ($list as $a): ?>   
                <div class="span3 <?php echo $i % 4 == 0 ? 'no-margin' : ''; ?>">
                    <div class="list-thumb">
                        <div>
                            <h5 class="no-padding"><?php echo $a['Project']['title'] ?></h5>
                        </div>
                        <?php echo $this->Html->image($a['Project']['image_path'], array('height' => '130px', 'width' => '100%')); ?>
                    </div>
                    <div class="list-content">
                        <?php echo $a['PropertyType']['type_name_'.strtolower($a['Project']['language'])].', '.$a['Project']['location'] ?>
                        <?php echo $this->Html->link('View Property', '/Projects/view/' . $a['Project']['code'], array('class' => 'price-btn', 'target' => '_blank')) ?>
                    </div>
                </div>
                <?php $i++; ?>
            <?php endforeach; ?> 
        <?php }else { ?>
            <h5 class="text-center c-red margin-top">Not found project.</h5>
        <?php } ?>
    </div>
</div>